public class Test {
    public static void main(String []args){
        try{
            Singleton A = Singleton.getInstance();
            System.out.println("instance A succeed");
            Singleton B = Singleton.getInstance();
            System.out.println("instance B succeed???");
        }catch (SingletonException e){
            System.out.println("success");
        }
    }
}
